package it.koutifaris.travianmap.view.serversview;

import it.koutifaris.travianmap.dal.TravianServerService;
import it.koutifaris.travianmap.dal.TravianServerService.TravianServer;
import it.koutifaris.travianmap.view.commandlistview.ListElement;

public class ServersListItem extends ListElement {

	private final TravianServer travianServer;

	public ServersListItem(TravianServerService.TravianServer travianServer) {
		super(travianServer.getServerId(), new OpenServerSettingsCommand(travianServer));
		this.travianServer = travianServer;
	}

	protected TravianServer getTavianServer() {
		return travianServer;
	}

}
